package router

import (
	"github.com/gin-gonic/gin"
	"kill/common/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/add/kill", AddKill)
	r.GET("/toEs", EsToKill)
	r.POST("/kill/search", KillSearch)
	r.POST("/register", Register)
	r.POST("/login", Login)
	r.POST("/alipay", AliPay)
	r.POST("/alipay/back", AliPayBack)
	r.Use(pkg.JWTAuth("2209A"))
	r.POST("/realName", RealName)
	r.POST("/create/order", CreateOrder)

}
